package lbframework.bean.progressBar;

import java.beans.*;

public class LBProgressBarBeanInfo extends SimpleBeanInfo {
    private final static Class beanClass = LBProgressBar.class;
    private static BeanDescriptor beanDescriptor = null;
    private static java.awt.Image icon = null;
    
    @Override
    public BeanDescriptor getBeanDescriptor() {
        beanDescriptor = new BeanDescriptor(beanClass);
        beanDescriptor.setDisplayName("LB ProgressBar");
        
        return beanDescriptor;
    }
     
    @Override
    public java.awt.Image getIcon(int iconKind) {
        if (iconKind == ICON_COLOR_16x16 || iconKind == ICON_MONO_16x16) {
            icon = loadImage("progressBar16.png");
        } else if (iconKind == ICON_COLOR_32x32 || iconKind == ICON_MONO_32x32) {
            icon = loadImage("progressBar32.png");
        } else {
            icon = null;
        }
        
        return icon;
    }
}
